<%--
  Created by IntelliJ IDEA.
  User: fire'ge
  Date: 2022/5/3
  Time: 21:22
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8"  isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<link rel="stylesheet" href="/TakeawaySystem/css/BanManage.css" type="text/css">
<head>
    <title>用户表</title>
</head>
<body>
<div>
        <table>
            <tr>
                <td align="center" colspan="4">你好！${user.username}
                    <a href="../jsp/ManageCenter.jsp">返回</a>  </td>

            </tr>
            <tr>
                <td>id号</td>
                <td>用户名</td>
                <td>操作</td>
            </tr>
            <c:forEach begin="0" end="${users.size()}" var="i">
            <tr>
                <td>${users[i].id}</td>
                <td>${users[i].username}</td>
                <td><a href="banRight?userId=${users[i].id}">限权</a> <a href="giveRight?userId=${users[i].id}">恢复权限</a>
                    <a href="banUserLogin?userId=${users[i].id}">封禁</a>  <a href="giveUserLogin?userId=${users[i].id}">解禁</a>
                </td>
            </tr>
            </c:forEach>

</div>

</body>
</html>